<?php

namespace App\Model\Ocean;

use App\Model\Model;
use App\Model\System\SystemFile;
use Hyperf\Database\Model\SoftDeletes;

/**
 * @property bigint $id
 * @property integer $create_time
 * @property integer $update_time
 * @property integer $delete_time
 * @property boolean $status
 * @property boolean $sort
 * @property integer $user_id
 * @property integer $fish_id
 * @property integer $grow_up_time
 */
class OceanUserFish extends Model
{
    use SoftDeletes;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'ocean_user_fish';

    public function OceanFish()
    {
        return $this->hasOne(OceanFish::class, 'id', 'fish_id');
    }


    protected $fillable = [
        'create_time',
        'update_time',
        'delete_time',
        'status',
        'sort',
        'user_id',
        'price',
        'fish_id',
        'grow_up_time',
    ];

}
